package com.niit.schoolhub.system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 轻量博客-用户
 * </p>
 *
 * @author kaguya
 * @since 2021-11-27
 */
@TableName("yesapi_one_users")
@ApiModel(value = "YesapiOneUsers对象", description = "轻量博客-用户")
public class YesapiOneUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("昵称")
    private String username;

    @ApiModelProperty("密码")
    private String yesapiOneUsersPassword;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("最后登录时间")
    private LocalDateTime lastLoginTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getYesapiOneUsersPassword() {
        return yesapiOneUsersPassword;
    }

    public void setYesapiOneUsersPassword(String yesapiOneUsersPassword) {
        this.yesapiOneUsersPassword = yesapiOneUsersPassword;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDateTime getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(LocalDateTime lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    @Override
    public String toString() {
        return "YesapiOneUsers{" +
        "id=" + id +
        ", username=" + username +
        ", yesapiOneUsersPassword=" + yesapiOneUsersPassword +
        ", email=" + email +
        ", lastLoginTime=" + lastLoginTime +
        "}";
    }
}
